x86/emulator: add feature checks for newer instructions
authorJan Beulich <jbeulich@suse.com>
Wed, 16 Nov 2011 16:04:31 +0000 (16:04 +0000)
committerJan Beulich <jbeulich@suse.com>
Wed, 16 Nov 2011 16:04:31 +0000 (16:04 +0000)
commit8cf292bd248120f68c2a4eefe8c8bfe446562ce9
tree50b73731fda19b216081db9166e2cb5f88666675
parent373ac54141fa98649168d65ce639d50c2b956fa9
x86/emulator: add feature checks for newer instructions

Certain instructions were introduced only after the i686 or original
x86-64 architecture, so we should not try to emulate them if the guest
is not seeing the respective feature enabled (or, worse, if the
underlying hardware doesn't support them). This affects fisttp,
movnti, and cmpxchg16b.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Signed-off-by: Keir Fraser <keir@xen.org>
xen/arch/x86/x86_emulate/x86_emulate.c